package br.com.sistema.utilitario;

import org.hibernate.Session;

public class CRUDGenerico implements InterfaceCRUDGenerico {

	private Session sessao;
	
	public Session getSessao() {
		return sessao;
	}

	@Override
	public void salvar(Object obj) {
		this.sessao.save(obj);
	}

	@Override
	public void alterar(Object obj) {
		this.sessao.update(obj);
		
	}

	@Override
	public void excluir(Object obj) {
		this.sessao.delete(obj);
		
	}
}
